/** * Tiny pure-JS layer over the page-localStorage key * `slicc_oauth_extra_domains`. Same shape and key the webapp's * `provider-settings.ts` uses; this module exists so the options page * (`secrets.html` / `secrets-entry.ts`) can share the same backend * without pulling in the full provider-settings module (which would * fan out into a heavy bundle). * * Both pages live at chrome-extension:///* so they hit the same * localStorage. Updates here are visible to the side panel on its next * read (no chrome.runtime round-trip needed). */ export declare const OAUTH_EXTRA_DOMAINS_KEY = "slicc_oauth_extra_domains"; export type OAuthExtraDomainsStore = Record; export interface LocalStorageLike { getItem(key: string): string | null; setItem(key: string, value: string): void; } export declare function readOAuthExtras(storage: LocalStorageLike): OAuthExtraDomainsStore; export declare function writeOAuthExtras(storage: LocalStorageLike, store: OAuthExtraDomainsStore): void; export declare function addOAuthExtraDomain(storage: LocalStorageLike, providerId: string, domain: string): { added: boolean; reason?: string; }; export declare function removeOAuthExtraDomain(storage: LocalStorageLike, providerId: string, domain: string): { removed: boolean; }; export declare function clearOAuthExtras(storage: LocalStorageLike, providerId: string): void; //# sourceMappingURL=oauth-extra-domains-storage.d.ts.map