/** * @octomil/browser — Auth configuration for silent device registration * * Separate from the existing AuthConfig in types.ts which covers * OrgApiKeyAuth / DeviceTokenAuth for the OctomilClient constructor. * This type is used by the top-level configure() flow. */ export type PublishableKeyEnvironment = "test" | "live"; export type SilentAuthConfig = { type: "publishable_key"; key: string; orgId?: string; appId?: string; } | { type: "bootstrap_token"; token: string; orgId?: string; appId?: string; } | { type: "anonymous"; appId: string; }; /** * Validates that a publishable key has an environment-scoped prefix. * Throws if the key does not start with `oct_pub_test_` or `oct_pub_live_`. */ export declare function validatePublishableKey(key: string): void; /** * Extracts the environment ("test" or "live") from an environment-scoped publishable key. * Returns `null` if the key does not have a recognized prefix. */ export declare function getPublishableKeyEnvironment(key: string): PublishableKeyEnvironment | null; //# sourceMappingURL=silent-auth-config.d.ts.map