import type { StaffSsoIdpValue, StaffSsoIdpView, StaffSsoSetupField, StaffSsoTypeSetup } from "@/api/staffSso"; /** Each certificate in the text; a lone body without BEGIN/END lines counts as one. */ export declare function splitCertificates(text: string): string[]; /** False when the text has BEGIN/END lines outside complete certificate blocks. */ export declare function isCompleteCertificateText(text: string): boolean; /** The form's text as the API takes it. */ export declare function toApiValue(field: StaffSsoSetupField, text: string): StaffSsoIdpValue; /** The saved value as form text; a secret is never prefilled. */ export declare function toFormText(field: StaffSsoSetupField, value: unknown): string; export declare function isFilled(field: StaffSsoSetupField, text: string): boolean; export declare function isHttpsUrl(text: string): boolean; /** The `idp` body to connect: the type plus every filled field. */ export declare function createIdp(setup: StaffSsoTypeSetup, texts: Record): { type: string; } & Record; export declare function editableFields(setup: StaffSsoTypeSetup): StaffSsoSetupField[]; /** * The `idp` changes to save: an unlocked field whose text differs from the saved * value, and a secret only when a new one was typed. Undefined when nothing changed. */ export declare function idpChanges(setup: StaffSsoTypeSetup, saved: StaffSsoIdpView, texts: Record): Record | undefined; /** Read-only rows for the connected card: every field but secrets, certificates as a count. */ export declare function detailRows(setup: StaffSsoTypeSetup, idp: StaffSsoIdpView): { field: StaffSsoSetupField; value: string; }[];