import type { AuditLogOptions } from "./types"; export declare function auditLog(options?: AuditLogOptions): { id: "audit-log"; schema: { auditLog: { modelName: string; fields: { userId: { type: "string"; required: boolean; references: { model: string; field: string; onDelete: "set null"; }; index: boolean; }; action: { type: "string"; required: boolean; sortable: boolean; index: boolean; }; status: { type: "string"; required: boolean; sortable: boolean; }; severity: { type: "string"; required: boolean; sortable: boolean; }; ipAddress: { type: "string"; required: boolean; }; userAgent: { type: "string"; required: boolean; returned: boolean; }; metadata: { type: "string"; required: boolean; }; createdAt: { type: "date"; required: boolean; sortable: boolean; index: boolean; defaultValue: () => Date; }; }; }; }; hooks: { before: { matcher: (context: import("better-auth").HookEndpointContext) => boolean; handler: (inputContext: import("better-call").MiddlewareInputContext) => Promise; }[]; after: { matcher: (context: import("better-auth").HookEndpointContext) => boolean; handler: (inputContext: import("better-call").MiddlewareInputContext) => Promise; }[]; }; endpoints: { listAuditLogs: import("better-call").StrictEndpoint<"/audit-log/list", { method: "GET"; use: ((inputContext: import("better-call").MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; query: import("zod").ZodObject<{ userId: import("zod").ZodOptional; action: import("zod").ZodOptional; status: import("zod").ZodOptional>; from: import("zod").ZodOptional; to: import("zod").ZodOptional; limit: import("zod").ZodDefault>>; offset: import("zod").ZodDefault>>; }, import("better-auth").$strip>; }, import("./types").StorageReadResult>; getAuditLog: import("better-call").StrictEndpoint<"/audit-log/:id", { method: "GET"; use: ((inputContext: import("better-call").MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; }, import("./types").AuditLogEntry>; insertAuditLog: import("better-call").StrictEndpoint<"/audit-log/insert", { method: "POST"; use: ((inputContext: import("better-call").MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; body: import("zod").ZodObject<{ action: import("zod").ZodString; status: import("zod").ZodDefault>>; severity: import("zod").ZodOptional>; metadata: import("zod").ZodDefault>>; }, import("better-auth").$strip>; }, { success: boolean; }>; }; rateLimit: { pathMatcher: (path: string) => boolean; window: number; max: number; }[]; }; //# sourceMappingURL=plugin.d.ts.map