import ' rollup-plugin-inject-process-env';
import { CtaConfig, ServerConfig, WidgetEnv } from "@xapp/stentor-chat-widget";
export declare function getBasePathFromWidgetSource(): {
    path: string;
    key?: string;
};
export declare const defaultServerUrl: string;
export declare const defaultAccountKey: string;
export declare const defaultWidgetButtonWidth = "48";
export declare const defaultMobileWidgetButtonWidth = "30";
export declare const defaultNonMobileScreenWidth = "400";
export declare const scheduleWidgetUrl = "ScheduleButton";
export interface Config {
    readonly connection: ServerConfig;
    readonly assetUrl?: string;
    readonly query?: QueryMap;
    readonly cta?: CtaConfig;
    readonly env?: WidgetEnv;
}
interface QueryMap {
    readonly [key: string]: string;
}
export declare function getBasePath(path?: string): {
    path: string;
    key?: string;
};
export declare const ChatConfigContext: import("react").Context<Config>;
export declare function useWidgetEnv(): WidgetEnv | undefined;
export declare function useAccountKey(): string | undefined;
export declare function getServerConfig(env?: WidgetEnv): ServerConfig;
export declare function useServerConfig(env?: WidgetEnv, nonce?: string): ServerConfig;
export declare function useConnectionInfo(env?: WidgetEnv): ServerConfig;
export {};
