import { ExecutionContext } from 'hono'; type BucketConfig = { publicUrl?: string; }; type R2ExplorerConfig = { readonly?: boolean; cors?: boolean; cfAccessTeamName?: string; dashboardUrl?: string; emailRouting?: | { targetBucket: string; } | false; showHiddenFiles?: boolean; basicAuth?: BasicAuth | BasicAuth[]; buckets?: Record; }; type AppEnv = { ASSETS: Fetcher; [key: string]: R2Bucket; }; declare function R2Explorer(config?: R2ExplorerConfig): { email(event: { raw: unknown; rawSize: unknown; }, env: AppEnv, context: ExecutionContext): Promise; fetch(request: Request, env: unknown, context: ExecutionContext): Promise; }; export { R2Explorer };