UNPKG

livekit-voice-assistant

Version:

A customizable voice assistant component built with LiveKit

27 lines (26 loc) 918 B
/** * Environment variables interface */ export interface Env { LIVEKIT_API_KEY?: string; LIVEKIT_API_SECRET?: string; LIVEKIT_URL?: string; NEXT_PUBLIC_CONN_DETAILS_ENDPOINT?: string; } /** * Loads environment variables from process.env or .env file * In browser context, only NEXT_PUBLIC_* variables are available */ export declare function loadEnv(): Env; /** * Utility to check if required environment variables are set * @param keys Array of required environment variable keys * @returns Boolean indicating if all variables are present */ export declare function checkRequiredEnv(keys: Array<keyof Env>): boolean; /** * For server-side environments, this validates required environment variables * @param keys Array of required environment variable keys * @throws Error if any required variables are missing */ export declare function validateServerEnv(keys: Array<keyof Env>): void;