import { type Injector, type Autoloader, type Initializer, type Service } from 'knifecycle'; import { type AppConfig } from 'application-services'; import { access as _access } from 'node:fs/promises'; import { type ResolveService, type ImporterService, type LogService } from 'common-services'; import { type WhookPluginsService, type WhookResolvedPluginsService } from './WHOOK_RESOLVED_PLUGINS.js'; import { type WhookDefinitions } from './DEFINITIONS.js'; import { type WhookCommandModule } from '../types/commands.js'; export type WhookInitializerMap = Record; export interface WhookAutoloadDependencies { APP_CONFIG?: AppConfig; INITIALIZER_PATH_MAP?: WhookInitializerMap; WHOOK_PLUGINS?: WhookPluginsService; WHOOK_RESOLVED_PLUGINS: WhookResolvedPluginsService; DEFINITIONS?: WhookDefinitions; $injector: Injector; importer: ImporterService; resolve: ResolveService; access?: typeof _access; log?: LogService; } declare const _default: import("knifecycle").ServiceInitializer>>; export default _default; export declare function checkAccess({ log, access, }: { log: LogService; access?: typeof _access; }, url: URL): Promise>[0]>;