import { type Auth } from '@scalar/workspace-store/entities/auth'; /** * Provides an interface to store and retrieve the selected client value * in local storage. */ export declare const clientStorage: () => { /** * Gets the stored selected client from local storage. */ get: () => string | null; /** * Stores the selected client value in local storage. * @param value The value to store */ set: (value: string) => void; }; /** * Provides an interface to store and retrieve authentication scheme * information in local storage, including both the available schemes and * the user's selected schemes. */ export declare const authStorage: () => { /** * Retrieves and coerces the authentication schemes stored in local storage. */ getAuth: (slug: string) => { selected: { document?: { selectedIndex: number; selectedSchemes: {}[]; } | undefined; path?: { [x: string]: { [x: string]: { selectedIndex: number; selectedSchemes: {}[]; }; }; } | undefined; }; secrets: { [x: string]: ({ name?: string | undefined; type: "apiKey"; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }) | ({ type: "http"; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-username': string; 'x-scalar-secret-password': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }) | ({ type: "oauth2"; } & { password?: ({ 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-username': string; 'x-scalar-secret-password': string; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; deviceAuthorization?: ({ 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; implicit?: ({ 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-redirect-uri'?: string | undefined; }) | undefined; clientCredentials?: ({ 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; authorizationCode?: ({ 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-secret-redirect-uri'?: string | undefined; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; }) | { password?: ({ scopes: { [x: string]: string; }; refreshUrl: string; } & { 'x-scalar-security-query'?: { [x: string]: string; } | undefined; } & { 'x-scalar-security-body'?: { [x: string]: string; } | undefined; } & { 'x-tokenName'?: string | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-order'?: number | undefined; } & { 'x-scalar-ignore'?: boolean | undefined; } & { tokenUrl: string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-username': string; 'x-scalar-secret-password': string; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; deviceAuthorization?: ({ scopes: { [x: string]: string; }; refreshUrl: string; } & { 'x-scalar-security-query'?: { [x: string]: string; } | undefined; } & { 'x-scalar-security-body'?: { [x: string]: string; } | undefined; } & { 'x-tokenName'?: string | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-order'?: number | undefined; } & { 'x-scalar-ignore'?: boolean | undefined; } & { deviceAuthorizationUrl: string; tokenUrl: string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; implicit?: ({ scopes: { [x: string]: string; }; refreshUrl: string; } & { 'x-scalar-security-query'?: { [x: string]: string; } | undefined; } & { 'x-scalar-security-body'?: { [x: string]: string; } | undefined; } & { 'x-tokenName'?: string | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-order'?: number | undefined; } & { 'x-scalar-ignore'?: boolean | undefined; } & { authorizationUrl: string; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-redirect-uri'?: string | undefined; }) | undefined; clientCredentials?: ({ scopes: { [x: string]: string; }; refreshUrl: string; } & { 'x-scalar-security-query'?: { [x: string]: string; } | undefined; } & { 'x-scalar-security-body'?: { [x: string]: string; } | undefined; } & { 'x-tokenName'?: string | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-order'?: number | undefined; } & { 'x-scalar-ignore'?: boolean | undefined; } & { tokenUrl: string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; authorizationCode?: ({ scopes: { [x: string]: string; }; refreshUrl: string; } & { 'x-scalar-security-query'?: { [x: string]: string; } | undefined; } & { 'x-scalar-security-body'?: { [x: string]: string; } | undefined; } & { 'x-tokenName'?: string | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-order'?: number | undefined; } & { 'x-scalar-ignore'?: boolean | undefined; } & { tokenUrl: string; authorizationUrl: string; } & { 'x-usePkce': "plain" | "SHA-256" | "no"; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; } & { 'x-scalar-secret-auth-url'?: string | undefined; } & { 'x-scalar-secret-token-url'?: string | undefined; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; } & { 'x-scalar-secret-client-id': string; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-refresh-token'?: string | undefined; } & { 'x-scalar-secret-client-secret': string; } & { 'x-scalar-secret-redirect-uri'?: string | undefined; } & { 'x-scalar-credentials-location'?: "body" | "header" | undefined; }) | undefined; type: "openIdConnect"; } | ({ type: "userPassword" | "plain" | "scramSha256" | "scramSha512"; } & { 'x-scalar-secret-username': string; 'x-scalar-secret-password': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }) | ({ type: "X509"; } & { 'x-scalar-secret-client-certificate': string; } & { 'x-scalar-secret-private-key': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }) | ({ type: "symmetricEncryption" | "asymmetricEncryption"; } & { 'x-scalar-secret-token': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }) | ({ type: "gssapi"; } & { 'x-scalar-secret-service-name': string; } & { 'x-scalar-secret-cleared-fields'?: string[] | undefined; }); }; }; /** * Stores the authentication schemes in local storage. * @param value The Auth object to stringify and store. */ setAuth: (slug: string, value: Auth) => void; }; //# sourceMappingURL=storage.d.ts.map