import type { StaticAssetSource } from '@fluojs/http'; /** Precompressed representation policy for a Node filesystem asset source. */ export type NodeFileSystemAssetPrecompression = boolean | { /** Whether `.br` siblings may be selected. Defaults to `true`. */ readonly brotli?: boolean; /** Whether `.gz` siblings may be selected. Defaults to `true`. */ readonly gzip?: boolean; }; /** Configuration for a Node filesystem-backed static asset source. */ export interface NodeFileSystemAssetSourceOptions { /** Existing directory that contains all served asset files. */ readonly root: string; /** Optional precompressed sibling selection policy. Defaults to `false`. */ readonly precompressed?: NodeFileSystemAssetPrecompression; } /** * Creates a Node-only filesystem source for {@link StaticAssetSource}. * * @param options Existing root directory and optional precompressed sibling policy. * @returns An explicit portable source that eagerly snapshots each verified * selected file into memory, closes its `FileHandle`, and replays only that * immutable byte snapshot through `StaticAsset.source`. * @throws {TypeError} When the root is empty, missing, or not a directory. */ export declare function createNodeFileSystemAssetSource(options: NodeFileSystemAssetSourceOptions): StaticAssetSource; //# sourceMappingURL=node-static-assets.d.ts.map