import { type SourceLocator } from '../source-locator.js'; import { type TrustHeaders } from '../http.js'; export declare const OPEN_IN_EDITOR_PATH = "/__lit-open-in-editor"; type Res = { statusCode: number; end: (msg: string) => void; }; /** * `allowedRoots` is a locator, or the roots to build one from: the first is * the primary root that relative `file` params resolve against, and every * entry grants open access to files beneath it. */ export declare const createOpenInEditorMiddleware: (allowedRoots: SourceLocator | readonly string[]) => (req: { url?: string; method?: string; headers?: TrustHeaders; }, res: Res, next: (err?: unknown) => void) => void; export {}; //# sourceMappingURL=open-in-editor.d.ts.map