import { InternalApiKeyCreateCrudRequest } from "@hexclave/shared/dist/interface/admin-interface"; import { InternalApiKeysCrud } from "@hexclave/shared/dist/interface/crud/internal-api-keys"; //#region src/lib/hexclave-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 { InternalApiKeyFirstView as a, InternalApiKeyCreateOptions as i, InternalApiKeyBase as n, internalApiKeyCreateOptionsToCrud as o, InternalApiKeyBaseCrudRead as r, InternalApiKey as t }; //# sourceMappingURL=index-TUtJOdMm.d.ts.map