import { InternalApiKeyCreateCrudRequest } from "@stackframe/stack-shared/dist/interface/admin-interface"; import { InternalApiKeysCrud } from "@stackframe/stack-shared/dist/interface/crud/internal-api-keys"; //#region src/lib/stack-app/internal-api-keys/index.d.ts type InternalApiKeyBase = { id: string; description: string; expiresAt: Date; manuallyRevokedAt: Date | null; createdAt: Date; isValid(): boolean; whyInvalid(): "expired" | "manually-revoked" | null; revoke(): Promise; }; type InternalApiKeyBaseCrudRead = Pick; type InternalApiKeyFirstView = { publishableClientKey?: string; secretServerKey?: string; superSecretAdminKey?: string; } & InternalApiKeyBase; type InternalApiKey = { publishableClientKey: null | { lastFour: string; }; secretServerKey: null | { lastFour: string; }; superSecretAdminKey: null | { lastFour: string; }; } & InternalApiKeyBase; type InternalApiKeyCreateOptions = { description: string; expiresAt: Date; hasPublishableClientKey: boolean; hasSecretServerKey: boolean; hasSuperSecretAdminKey: boolean; }; declare function internalApiKeyCreateOptionsToCrud(options: InternalApiKeyCreateOptions): InternalApiKeyCreateCrudRequest; //#endregion export { InternalApiKey, InternalApiKeyBase, InternalApiKeyBaseCrudRead, InternalApiKeyCreateOptions, InternalApiKeyFirstView, internalApiKeyCreateOptionsToCrud }; //# sourceMappingURL=index.d.ts.map