import { AuthContext, AuthInterpreter, AuthMachineOptions } from './machines'; import { NhostSession } from './types'; export type NhostClientOptions = AuthMachineOptions & { /** @internal create and start xstate interpreter on creation. With React, it is started inside the Nhost provider */ start?: boolean; }; /** * @internal * This is a private API. */ export declare class AuthClient { readonly backendUrl: string; readonly clientUrl: string; private _machine; private _interpreter?; private _started; private _channel?; private _subscriptionsQueue; private _subscriptions; constructor({ clientStorageType, autoSignIn, autoRefreshToken, start, backendUrl, clientUrl, broadcastKey, devTools, ...defaultOptions }: NhostClientOptions); start({ devTools, initialSession, interpreter }?: { interpreter?: AuthInterpreter; initialSession?: NhostSession; devTools?: boolean; }): void; get machine(): import("xstate").StateMachine>; get interpreter(): AuthInterpreter | undefined; get started(): boolean; subscribe(fn: (client: AuthClient) => () => void): () => void; } /** @deprecated Not in use anymore. Use `clientStorageType: 'cookie'` instead */ export declare class AuthCookieClient extends AuthClient { constructor({ ...options }: Omit); } /** @deprecated Alias for {@link AuthCookieClient} */ export declare const AuthClientSSR: typeof AuthCookieClient; //# sourceMappingURL=internal-client.d.ts.map