import { type Entry } from './log.js'; import type { TwinAction } from './actions.js'; export declare const PLACEHOLDER_REMOTE = "placeholder"; /** The window is per WORLD SERVICE ROOT, not per state service: a twin may record under a state * service that is not its world service id (slack records under `chat`), and every state service * of one twin lives under the same root — so the marker sits at the root's state dir. */ export declare function placeholderPullMarkerPath(_service: string, root?: string): string; /** Is the service's placeholder-pull window open? */ export declare function placeholderPullActive(service: string, root?: string): boolean; export declare function beginPlaceholderPull(service: string, root?: string, at?: string): void; export declare function endPlaceholderPull(service: string, root?: string): void; /** Open the window around `fn` (in-process seeding). */ export declare function withPlaceholderPull(service: string, root: string | undefined, fn: () => T | Promise): Promise; /** The entries a local write becomes when it is a pull from the placeholder: the write's own * subject and fields, plus every resource its projection creates or updates. A projection * DELETE has no placeholder form (the placeholder holds what exists, not what was removed) and is * refused loudly — a seed creates the world, it does not un-create it. */ export declare function placeholderEntriesFor(action: TwinAction): Entry[]; /** Land `action` as the placeholder's entries on the parent log. Caller holds the service locks. */ export declare function landAsPlaceholder(action: TwinAction, root?: string): { entries: Entry[]; };