import type { DataResourceSurface, SubjectProfile, UserReferenceValue } from 'openxiangda-contracts/browser'; import type { SurfaceField } from './SurfaceFields'; export type ResourceRecord = Record & { id: string; revision: number; created_at?: string; updated_at?: string; }; export interface GeneratedResourceRoutePaths { fallback: string; list?: string; detail?: string; create?: string; edit?: string; } export declare function resourceRecordPath(path: string | undefined, id: string): string; export declare function signatureSigner(profile: SubjectProfile | null): UserReferenceValue | undefined; export declare function fieldFor(surface: DataResourceSurface, key: string): SurfaceField; export declare function filterValueLabel(value: unknown): string; export declare function activeFilterValue(value: unknown): boolean; export declare function fieldsBySection(surface: DataResourceSurface, view?: 'form' | 'detail'): { section: string; fields: SurfaceField[]; }[]; export declare function fieldWriteAuthorized(field: SurfaceField, mode: 'create' | 'edit', hasCapability: (code: string) => boolean, isAppSuperAdmin: boolean): boolean; export declare function fieldWritable(field: SurfaceField, mode: 'create' | 'edit', hasCapability: (code: string) => boolean, isAppSuperAdmin: boolean): boolean; export declare function fieldReadable(field: SurfaceField, hasCapability: (code: string) => boolean, isAppSuperAdmin: boolean): boolean; //# sourceMappingURL=resource-page-helpers.d.ts.map