import type { BigIntStats } from "node:fs"; export type WebhookCredentialStoreErrorCode = "exists" | "invalid" | "missing" | "unavailable"; export declare class WebhookCredentialStoreError extends Error { readonly code: WebhookCredentialStoreErrorCode; name: string; constructor(code: WebhookCredentialStoreErrorCode, message: string); } export interface WebhookCredentialFileHandle { chmod(mode: number): Promise; close(): Promise; read(buffer: Uint8Array, offset: number, length: number, position: number): Promise<{ bytesRead: number; }>; stat(options: { bigint: true; }): Promise; sync(): Promise; writeFile(data: string, encoding: BufferEncoding): Promise; } export interface WebhookCredentialFileSystem { lstat(path: string, options: { bigint: true; }): Promise; open(path: string, flags: number, mode?: number): Promise; realpath(path: string): Promise; unlink(path: string): Promise; } export declare const DEFAULT_WEBHOOK_CREDENTIAL_FILE_SYSTEM: WebhookCredentialFileSystem; export declare class WebhookCredentialStore { #private; constructor(root: string, fileSystem?: WebhookCredentialFileSystem); pathFor(webhookId: string): string; read(webhookId: string): Promise; write(webhookId: string, token: string): Promise; remove(webhookId: string): Promise; } //# sourceMappingURL=webhook-credential-store.d.ts.map