import { aether } from '../../aether/aether';
import { z } from 'zod';
import { connection, Synnax } from '@synnaxlabs/client';

declare const stateZ: z.ZodObject<{
    props: z.ZodNullable<z.ZodObject<{
        host: z.ZodString;
        port: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
        username: z.ZodOptional<z.ZodString>;
        password: z.ZodOptional<z.ZodString>;
        connectivityPollFrequency: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
            value: z.ZodBigInt;
        }, "strip", z.ZodTypeAny, {
            value: bigint;
        }, {
            value: bigint;
        }>, import('@synnaxlabs/client').TimeSpan, {
            value: bigint;
        }>, z.ZodEffects<z.ZodString, import('@synnaxlabs/client').TimeSpan, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import('@synnaxlabs/client').TimeSpan, Number>, z.ZodEffects<z.ZodNumber, import('@synnaxlabs/client').TimeSpan, number>, z.ZodType<import('@synnaxlabs/client').TimeSpan, z.ZodTypeDef, import('@synnaxlabs/client').TimeSpan>]>>;
        secure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        name: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        host: string;
        port: string | number;
        connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
        secure: boolean;
        username?: string | undefined;
        password?: string | undefined;
        name?: string | undefined;
    }, {
        host: string;
        port: string | number;
        username?: string | undefined;
        password?: string | undefined;
        connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
            value: bigint;
        } | undefined;
        secure?: boolean | undefined;
        name?: string | undefined;
    }>>;
    state: z.ZodNullable<z.ZodObject<{
        status: z.ZodEnum<["disconnected", "connecting", "connected", "failed"]>;
        error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
        message: z.ZodOptional<z.ZodString>;
        clusterKey: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        status: "connected" | "disconnected" | "connecting" | "failed";
        clusterKey: string;
        error?: Error | undefined;
        message?: string | undefined;
    }, {
        status: "connected" | "disconnected" | "connecting" | "failed";
        clusterKey: string;
        error?: Error | undefined;
        message?: string | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    props: {
        host: string;
        port: string | number;
        connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
        secure: boolean;
        username?: string | undefined;
        password?: string | undefined;
        name?: string | undefined;
    } | null;
    state: {
        status: "connected" | "disconnected" | "connecting" | "failed";
        clusterKey: string;
        error?: Error | undefined;
        message?: string | undefined;
    } | null;
}, {
    props: {
        host: string;
        port: string | number;
        username?: string | undefined;
        password?: string | undefined;
        connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
            value: bigint;
        } | undefined;
        secure?: boolean | undefined;
        name?: string | undefined;
    } | null;
    state: {
        status: "connected" | "disconnected" | "connecting" | "failed";
        clusterKey: string;
        error?: Error | undefined;
        message?: string | undefined;
    } | null;
}>;
export interface ContextValue {
    synnax: Synnax | null;
    state: connection.State;
}
export declare const ZERO_CONTEXT_VALUE: ContextValue;
export declare class Provider extends aether.Composite<typeof stateZ, ContextValue> {
    static readonly TYPE = "SynnaxProvider";
    static readonly stateZ: z.ZodObject<{
        props: z.ZodNullable<z.ZodObject<{
            host: z.ZodString;
            port: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
            username: z.ZodOptional<z.ZodString>;
            password: z.ZodOptional<z.ZodString>;
            connectivityPollFrequency: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
                value: z.ZodBigInt;
            }, "strip", z.ZodTypeAny, {
                value: bigint;
            }, {
                value: bigint;
            }>, import('@synnaxlabs/client').TimeSpan, {
                value: bigint;
            }>, z.ZodEffects<z.ZodString, import('@synnaxlabs/client').TimeSpan, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import('@synnaxlabs/client').TimeSpan, Number>, z.ZodEffects<z.ZodNumber, import('@synnaxlabs/client').TimeSpan, number>, z.ZodType<import('@synnaxlabs/client').TimeSpan, z.ZodTypeDef, import('@synnaxlabs/client').TimeSpan>]>>;
            secure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
            name: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            host: string;
            port: string | number;
            connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
            secure: boolean;
            username?: string | undefined;
            password?: string | undefined;
            name?: string | undefined;
        }, {
            host: string;
            port: string | number;
            username?: string | undefined;
            password?: string | undefined;
            connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
                value: bigint;
            } | undefined;
            secure?: boolean | undefined;
            name?: string | undefined;
        }>>;
        state: z.ZodNullable<z.ZodObject<{
            status: z.ZodEnum<["disconnected", "connecting", "connected", "failed"]>;
            error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
            message: z.ZodOptional<z.ZodString>;
            clusterKey: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        }, {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        props: {
            host: string;
            port: string | number;
            connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
            secure: boolean;
            username?: string | undefined;
            password?: string | undefined;
            name?: string | undefined;
        } | null;
        state: {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        } | null;
    }, {
        props: {
            host: string;
            port: string | number;
            username?: string | undefined;
            password?: string | undefined;
            connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
                value: bigint;
            } | undefined;
            secure?: boolean | undefined;
            name?: string | undefined;
        } | null;
        state: {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        } | null;
    }>;
    schema: z.ZodObject<{
        props: z.ZodNullable<z.ZodObject<{
            host: z.ZodString;
            port: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
            username: z.ZodOptional<z.ZodString>;
            password: z.ZodOptional<z.ZodString>;
            connectivityPollFrequency: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
                value: z.ZodBigInt;
            }, "strip", z.ZodTypeAny, {
                value: bigint;
            }, {
                value: bigint;
            }>, import('@synnaxlabs/client').TimeSpan, {
                value: bigint;
            }>, z.ZodEffects<z.ZodString, import('@synnaxlabs/client').TimeSpan, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, import('@synnaxlabs/client').TimeSpan, Number>, z.ZodEffects<z.ZodNumber, import('@synnaxlabs/client').TimeSpan, number>, z.ZodType<import('@synnaxlabs/client').TimeSpan, z.ZodTypeDef, import('@synnaxlabs/client').TimeSpan>]>>;
            secure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
            name: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            host: string;
            port: string | number;
            connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
            secure: boolean;
            username?: string | undefined;
            password?: string | undefined;
            name?: string | undefined;
        }, {
            host: string;
            port: string | number;
            username?: string | undefined;
            password?: string | undefined;
            connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
                value: bigint;
            } | undefined;
            secure?: boolean | undefined;
            name?: string | undefined;
        }>>;
        state: z.ZodNullable<z.ZodObject<{
            status: z.ZodEnum<["disconnected", "connecting", "connected", "failed"]>;
            error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
            message: z.ZodOptional<z.ZodString>;
            clusterKey: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        }, {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        }>>;
    }, "strip", z.ZodTypeAny, {
        props: {
            host: string;
            port: string | number;
            connectivityPollFrequency: import('@synnaxlabs/client').TimeSpan;
            secure: boolean;
            username?: string | undefined;
            password?: string | undefined;
            name?: string | undefined;
        } | null;
        state: {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        } | null;
    }, {
        props: {
            host: string;
            port: string | number;
            username?: string | undefined;
            password?: string | undefined;
            connectivityPollFrequency?: string | number | Number | import('@synnaxlabs/client').TimeSpan | {
                value: bigint;
            } | undefined;
            secure?: boolean | undefined;
            name?: string | undefined;
        } | null;
        state: {
            status: "connected" | "disconnected" | "connecting" | "failed";
            clusterKey: string;
            error?: Error | undefined;
            message?: string | undefined;
        } | null;
    }>;
    afterUpdate(): Promise<void>;
}
export declare const use: (ctx: aether.Context) => Synnax | null;
export declare const REGISTRY: aether.ComponentRegistry;
export {};
//# sourceMappingURL=provider.d.ts.map