import { type PostPrimitives, type Posts } from '../types';
import { type UndefinedOr } from '@devprotocol/util-ts';
export type OnUpdateHandler = (post: PostPrimitives) => PostPrimitives | Promise<PostPrimitives>;
export declare const onUpdate: (handler: OnUpdateHandler) => Set<OnUpdateHandler>;
export declare const update: (_post: PostPrimitives) => Promise<PostPrimitives>;
export declare const EncodedPostClassName = "__input-encoded-post__";
export declare const currentPost: (handler: (post: Posts) => unknown, base: Readonly<Element>) => UndefinedOr<HTMLInputElement>;
