import { FOLIO_TEXT_RANGE_JSON_SCHEMA } from "./operation-schema.js";
import { FolioAITextRangeHandle, FolioDocumentSectionHandle, FolioDocumentStoryHandle } from "@stll/folio-core/server";
//#region src/codecs.d.ts
declare const FOLIO_STORY_HANDLE_JSON_SCHEMA: {
  readonly type: "object";
  readonly properties: {
    readonly type: {
      readonly type: "string";
      readonly enum: readonly ["main", "header", "footer", "footnote", "endnote"];
    };
    readonly relationshipId: {
      readonly type: "string";
    };
    readonly noteId: {
      readonly type: "integer";
    };
  };
  readonly required: readonly ["type"];
  readonly additionalProperties: false;
};
declare const FOLIO_SECTION_HANDLE_JSON_SCHEMA: {
  readonly type: "object";
  readonly properties: {
    readonly type: {
      readonly type: "string";
      readonly enum: readonly ["headingSection"];
    };
    readonly story: {
      readonly type: "string";
      readonly enum: readonly ["main"];
    };
    readonly headingBlockId: {
      readonly type: "string";
    };
    readonly headingTextHash: {
      readonly type: "string";
    };
    readonly headingLevel: {
      readonly type: "integer";
      readonly minimum: 1;
      readonly maximum: 9;
    };
  };
  readonly required: readonly ["type", "story", "headingBlockId", "headingTextHash", "headingLevel"];
  readonly additionalProperties: false;
};
declare const FOLIO_SCOPED_HANDLE_JSON_SCHEMA: {
  readonly type: "object";
  readonly properties: {
    readonly type: {
      readonly type: "string";
      readonly enum: readonly ["main", "header", "footer", "footnote", "endnote", "headingSection"];
    };
    readonly story: {
      readonly type: "string";
      readonly enum: readonly ["main"];
    };
    readonly relationshipId: {
      readonly type: "string";
    };
    readonly noteId: {
      readonly type: "integer";
    };
    readonly headingBlockId: {
      readonly type: "string";
    };
    readonly headingTextHash: {
      readonly type: "string";
    };
    readonly headingLevel: {
      readonly type: "integer";
      readonly minimum: 1;
      readonly maximum: 9;
    };
  };
  readonly required: readonly ["type"];
  readonly additionalProperties: false;
};
declare const FOLIO_COMMENT_ID_JSON_SCHEMA: {
  readonly type: "string";
  readonly description: "The comment id string from `read_comments`.";
};
type FolioAgentCommentId = {
  raw: string;
  numeric: number;
};
declare const decodeSectionHandle: (value: unknown) => FolioDocumentSectionHandle | null;
declare const decodeStoryHandle: (value: unknown) => FolioDocumentStoryHandle | null;
declare const decodeMainStoryTextRangeHandle: (value: unknown) => FolioAITextRangeHandle | null;
declare const decodeCommentId: (value: unknown) => FolioAgentCommentId | null;
//#endregion
export { FOLIO_COMMENT_ID_JSON_SCHEMA, FOLIO_SCOPED_HANDLE_JSON_SCHEMA, FOLIO_SECTION_HANDLE_JSON_SCHEMA, FOLIO_STORY_HANDLE_JSON_SCHEMA, FOLIO_TEXT_RANGE_JSON_SCHEMA, FolioAgentCommentId, decodeCommentId, decodeMainStoryTextRangeHandle, decodeSectionHandle, decodeStoryHandle };