import { type NameFolding } from "./name-folding.ts";
export interface InlineBundleFile {
    readonly path: string;
    readonly sha256: string;
    readonly base64: string;
}
/** The bundle folder's files for an inline answer, or `undefined` when they do not fit the limits. */
export declare function readInlineBundle(bundleDir: string, limits: {
    readonly maxBytes: number;
    readonly maxFiles: number;
}): Promise<InlineBundleFile[] | undefined>;
/**
 * Writes an inline bundle into a folder of its own under `incoming`, as the bundle folder it was read from, runs `use`
 * on it with the sha256 each file was sent with, and removes the folder whatever happens. A refused list makes no
 * folder and writes nothing. Before it writes, it removes the `inline-` folders under `incoming` that were not
 * modified for an hour (`STALE_STAGING_MS`); a younger one, or a folder of another name, is kept.
 *
 * A list with two paths that are one name where names fold (letter case, Unicode form) is refused too, but only
 * where `incoming`'s file system really folds them (senpi#6472): `probeFolding` asks it, and only for such a list.
 * Like every other refusal of a sent list, it happens before the first folder is made.
 */
export declare function withStagedInlineBundle<T>(files: readonly InlineBundleFile[], incoming: string, use: (bundleDir: string, sent: ReadonlyMap<string, string>) => Promise<T>, probeFolding?: (folder: string) => Promise<NameFolding>): Promise<T>;
//# sourceMappingURL=inline-bundle.d.ts.map