import type { Bridge } from './index'; /** * This is the bridge from whatever datasource we need for I/O. * The basic example here is for the filesystem, one is needed * for GitHub has well. * * When `outputPath` differs from `rootPath` (multi-repo: generator + * sibling content repo), paths under `tina/__generated__/` still resolve * against `rootPath` — schema/graphql/lookup artifacts live only in the * generator. Everything else (content files) resolves against `outputPath`. * * @security All public methods validate their `filepath` / `pattern` * argument via `assertWithinBase` before performing any I/O. If you add a * new method that accepts a path, you MUST validate it the same way. */ export declare class FilesystemBridge implements Bridge { rootPath: string; outputPath: string; constructor(rootPath: string, outputPath?: string); private baseFor; private assertGeneratedSubtree; glob(pattern: string, extension: string): Promise; delete(filepath: string): Promise; get(filepath: string): Promise; put(filepath: string, data: string, basePathOverride?: string): Promise; } /** * Same as the `FileSystemBridge` except it does not save files */ export declare class AuditFileSystemBridge extends FilesystemBridge { put(filepath: string, data: string): Promise; }