Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
1 KiB
Text
31 lines
1 KiB
Text
import type { Provider } from "@smithy/types";
|
|
import type { EnvOptions, GetterFromEnv } from "./fromEnv";
|
|
import type { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
|
import type { FromStaticConfig } from "./fromStatic";
|
|
/**
|
|
* @internal
|
|
*/
|
|
export type LocalConfigOptions = SharedConfigInit & EnvOptions;
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface LoadedConfigSelectors<T> {
|
|
/**
|
|
* A getter function getting the config values from all the environment
|
|
* variables.
|
|
*/
|
|
environmentVariableSelector: GetterFromEnv<T>;
|
|
/**
|
|
* A getter function getting config values associated with the inferred
|
|
* profile from shared INI files
|
|
*/
|
|
configFileSelector: GetterFromConfig<T>;
|
|
/**
|
|
* Default value or getter
|
|
*/
|
|
default: FromStaticConfig<T>;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
|