import * as v from "valibot"; import type { CustomBlockErrorInfo } from "../errors"; import type { NotionPagePropertyInputMap, NotionPagePropertyWriteMap } from "../pages/page.js"; import type { NotionDataSource } from "./dataSource.js"; export declare const customBlockPropertyErrorCodeSchema: v.StringSchema; export type CustomBlockPropertyErrorCode = "unmapped_property" | "property_id_mismatch" | "duplicate_property" | "invalid_property_value" | (string & {}); export type CustomBlockPropertyErrorInfo = CustomBlockErrorInfo; export type PropertyWriteMapResolutionResult = { status: "success"; properties: NotionPagePropertyWriteMap; } | { status: "error"; error: CustomBlockPropertyErrorInfo; }; /** * Resolves a public SDK property write map into the ID-keyed bridge shape. * * Identifiers in `properties` may be raw property IDs or data-source property keys; the latter * are looked up in the `dataSource`'s `propertyIdsByKey`. Each value is re-parsed through * `notionPagePropertyValueSchema` with its `id` rewritten to the resolved property ID. */ export declare function resolvePropertyWriteMapForDataSource(args: { dataSource: NotionDataSource | undefined; properties: NotionPagePropertyInputMap; operationName: string; }): PropertyWriteMapResolutionResult; /** * Treats matching data-source keys as aliases for property IDs; all other identifiers are raw IDs. */ export declare function resolvePropertyIdentifierForDataSource(args: { dataSource: NotionDataSource | undefined; identifier: string; operationName: string; }): { status: "success"; propertyId: string; } | { status: "error"; error: CustomBlockPropertyErrorInfo; }; //# sourceMappingURL=resolveProperty.d.ts.map